package com.free.messager;

import java.util.Locale;

public interface IMessager {

    /**
     *
     * @param key
     * @param params
     * @return
     */
    String getMessage(Enum<?> key, Object... params);

    /**
     *
     * @param key
     * @param params
     * @return
     */
    String getMessage(String key, Object... params);

    /**
     *
     * @param key
     * @param local
     * @param params
     * @return
     */
    String getMessageWithLocale(Enum<?> key, Locale local, Object... params);

    /**
     *
     * @param key
     * @param local
     * @param params
     * @return
     */
    String getMessageWithLocale(String key, Locale local, Object... params);

}
